import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '',
      name: 'index',
      component: () => import('@/views/index'),
      meta: {
        title: '劳务派遣监管专户数字化平台'
      }
    },
    {
      path: '/index',
      name: 'index',
      component: () => import('@/views/index'),
      meta: {
        title: '劳务派遣监管专户数字化平台'
      }
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/login'),
      meta: {
        title: '用户登录'
      }
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('@/views/register'),
      meta: {
        title: '用户注册'
      }
    },
    {
      path: '/forgetPassword',
      name: 'forgetPassword',
      component: () => import('@/views/forgetPassword'),
      meta: {
        title: '忘记密码'
      }
    },
    {
      path: '/personCenter',
      name: 'personCenter',
      component: () => import('@/views/personCenter'),
      meta: {
        title: '个人中心'
      }
    },
    {
      path: '/salaryRecordSearch',
      name: 'salaryRecordSearch',
      component: () => import('@/views/payoffRecordSearch/salaryRecordSearch'),
      meta: {
        title: '工资发放记录查询'
      }
    },
    {
      path: '/socialSearch',
      name: 'socialSearch',
      component: () => import('@/views/socialSecurityQuery/socialSearch'),
      meta: {
        title: '社保查询'
      }
    },
    {
      path: '/personSocialInfo',
      name: 'personSocialInfo',
      component: () => import('@/views/socialSecurityQuery/personSocialInfo'),
      meta: {
        title: '个人参保信息'
      }
    },
    { // 以下是深圳一卡通的总结内容
      path: '/home',
      name: 'home',
      component: () => import('@/views/shenzhenCard/home/home.vue'),
      meta: {
        title: '首页'
      }
    },
    {
      path: '/job',
      name: 'job',
      component: () => import('@/views/shenzhenCard/job/job.vue'),
      meta: {
        title: '职位'
      }
    },
    {
      path: '/message',
      name: 'message',
      component: () => import('@/views/shenzhenCard/message/message.vue'),
      meta: {
        title: '消息'
      }
    },
    {
      path: '/mine',
      name: 'mine',
      component: () => import('@/views/shenzhenCard/mine/mine.vue'),
      meta: {
        title: '我的'
      }
    },
    {
      path: '/myResumeDetail',
      name: 'myResumeDetail',
      component: () => import('@/views/shenzhenCard/mine/resume/resume.vue'),
      meta: {
        title: '我的简历'
      }
    },
    {
      path: '/previewPdf',
      name: 'previewPdf',
      component: () => import('@/views/socialSecurityQuery/previewPdf.vue'),
      meta: {
        title: 'pdf预览'
      }
    },
    {
      path: '/upUi',
      name: 'upUi',
      component: () => import('@/views/upUi/upUi'),
      meta: {
        title: 'upUi'
      }
    }
  ]
})
